using current Module."name" gives null value

Hello,

I was wonder why using the ."Name" gives a null string? Thank you.

Module m = current
print m."Name" "\n" // ERROR - Prints a null string
print name(m) "\n" // Prints the module name

-Jim


EHcnck - Fri Jul 26 20:04:13 EDT 2013

Re: using current Module."name" gives null value
llandale - Sat Jul 27 16:29:26 EDT 2013

That code works fine in v9306.  What version are you using?  Also, try adding parens.

  • Module m = current
  • print (m."Name") "\n" // ERROR - Prints a null string
  • print name(m) "\n" // Prints the module name

-Louie

Re: using current Module."name" gives null value
EHcnck - Sat Jul 27 23:40:54 EDT 2013

llandale - Sat Jul 27 16:29:26 EDT 2013

That code works fine in v9306.  What version are you using?  Also, try adding parens.

  • Module m = current
  • print (m."Name") "\n" // ERROR - Prints a null string
  • print name(m) "\n" // Prints the module name

-Louie

Hello,

I forget to say that its only one module that the syntax print (m."Name") prints null. Any ideas why?

Running DOORS 9.3.0.7

-Jim

Re: using current Module."name" gives null value
GregM_dxler - Mon Jul 29 09:47:07 EDT 2013

EHcnck - Sat Jul 27 23:40:54 EDT 2013

Hello,

I forget to say that its only one module that the syntax print (m."Name") prints null. Any ideas why?

Running DOORS 9.3.0.7

-Jim

If only one module does this, maybe the Name of that module is blank?

Check module properties.

Greg

Re: using current Module."name" gives null value
llandale - Mon Jul 29 16:03:05 EDT 2013

GregM_dxler - Mon Jul 29 09:47:07 EDT 2013

If only one module does this, maybe the Name of that module is blank?

Check module properties.

Greg

Or more likely some white space.

  • string Name = m."Name"
  • print (length(Name)) "\t[" Name "]\n"

I could not reproduce the error, even trying the ModuleProperties bug when changing the module name.

-Louie